<div class="w">
    <div class="case-title clearfix">
    <?php
        if ($neighborsId['next_id']) {
            echo $this->Html->link(
                $this->Html->image('/images/n_next.gif',array('width'=>'12','height'=>'15', 'alt'=>'下一个案例', 'title'=>'下一个案例')),
                "/case/view/{$neighborsId['next_id']}/type:$caseType",
                array('escape' => false, 'class'=>'fr')
            );

        }
        echo $this->Html->link(
            $this->Html->image('/images/n_back.gif', array('width'=>'23','height'=>'14', 'alt'=>'返回列表', 'title'=>'返回列表')),
            "/case/index/type:$caseType",
            array('escape' => false, 'class'=>'fr')
        );
        if ($neighborsId['prev_id']) {
            echo $this->Html->link(
                $this->Html->image('/images/n_prev.gif',array('width'=>'12','height'=>'15', 'alt'=>'上一个案例', 'title'=>'上一个案例')),
                "/case/view/{$neighborsId['prev_id']}/type:$caseType",
                array('escape' => false, 'class'=>'fr')
            );
        }
    ?>
        <p class="fl">
            <?php echo $this->Html->image('/'.$dataDetail['Case']['title_img'], array('width'=>'120','height'=>'40')) ?>
            <span><?php echo $dataDetail['Case']['title']?></span>
        </p>
    </div>
    <p class="case-intro"><?php echo $dataDetail['Case']['desc']?></p>
    <?php 
    $dataDetails = json_decode($dataDetail['Case']['features'], true); 
    $liStr = '';
    $hasDetails = false;
    foreach ($dataDetails as $i => $feature) {
        $class = $i==2 ? "class=borno" : '';

        $liStr.= "<li $class >";
        $liStr.= "<h4>{$feature['title']}</h4>";
        $liStr.= "<p>{$feature['desc']}</p>";
        $liStr.= "</li>"; 
        if (!$hasDetails && !empty($feature['title'])) {
            $hasDetails = true;
        }
    }
    ?>
    <?php if($hasDetails) :?>
    <ul class="case-intro1 clearfix">
    <?php echo $liStr; ?>
    </ul>  
    <?php endif; ?>
    <div class="bigImg">
        <?php foreach(json_decode($dataDetail['Case']['images']) as $image):?> 
        <?php if(!empty($image)) echo $this->Html->image('/'.$image) ?>
        <?php endforeach; ?>
    </div>   
</div> 
